package twu.shubham.biblioteca;


/**
 * Created with IntelliJ IDEA.
 * User: nikku
 * Date: 8/11/13
 * Time: 9:46 PM
 * To change this template use File | Settings | File Templates.
 */
public class bookrecord {

    public int slno;
    public int amt;
    public String bookname ;
    public int actamt;
    public int setValues(int i, int j,String name) {
        slno =i;
        amt=j;
        bookname=name;
        actamt=j;
        return 1;
    }

    public int getAmtLeft() {
        if(amt>0)
            return 1;

        return 0;

    }

    public int getAct() {
        if(amt<actamt)
            return 1;

        return 0;

    }
}

